using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class Teacher:Person
    {
        public string title;
        public string wageno;

        public string Hello
        
        {
            get { return this.title; }
            set { this.title = value; }
        }

        public Teacher(int id, string name, char sex, string cardId, string tel,string title, string wageno)
            :base(id, name, sex, cardId, tel)
        {
            this.title = title;
            this.wageno = wageno;
        }

        public string Wageno

        {
            get { return this.wageno; }
            set { this.wageno = value; }
        }
        public void Hello()
        {
            base.Hello();
            Console.WriteLine("职称{0}、工资号{1}", this.title, this.wageno);
        }
    }
}